package shiyan3;

public class FactoryProducer {
    public static AbstractFactory getFactory(String type)
    {
        if("huawei".equals(type)){
            return new HuaWeiFactory();
        }
        if("xiaomi".equals(type)){
            return new XiaoMiFactory();
        }
        return null;
    }
}
